
package za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Observer.Factory;

import za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Observer.Model.WeatherCustomer1;
import za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Observer.Model.WeatherCustomer2;
import za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Observer.Model.WeatherStation;


public class WeatherFactory 
{
    public static WeatherStation weatherStation = null;

    public static WeatherStation createWeatherStation(int i) 
    {
        if(weatherStation == null)
            weatherStation = new WeatherStation(i);
        return weatherStation;
    }

    public static WeatherCustomer1 createWeatherCustomer1() 
    {
        WeatherCustomer1 wc1 = new WeatherCustomer1();   
        return wc1;
    }

    public static WeatherCustomer2 createWeatherCustomer2() 
    {
        WeatherCustomer2 wc2 = new WeatherCustomer2();   
        return wc2;
    }
    
    
}
